import { validateNumberPhone, validateNumberFixed } from '/@/utils/validators';
import request from '/@/api/project/order/index';
import { i18n } from '/@/locales/i18n';
const $t = i18n.global.t;

export default function (data: any) {
	const array = [
		{
			type: 'password',
			label: $t('qiKrZPuX17DJzlPPzgk'),
			key: 'oldPassword',
			value: '',
			placeHolder: $t('ccvHpu5SffOrvsiLnOOy'),
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
			rules: [{ required: true, message: $t('gjicXxLtySfwThPcYuQyr'), trigger: ['blur', 'change'] }],
		},

		{
			type: 'password',
			label: $t('aRpUuWiMEu8yIDwsbfEDu'),
			key: 'newPassword',
			placeHolder: $t('bzIcJagsQjlkgLLbFnp'),
			value: '',
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
			rules: [{ required: true, message: $t('eI1KkfUl0lrEaHx2Sora'), trigger: ['blur', 'change'] }],
		},

		{
			type: 'password',
			label: $t('r1z67a71jh6Slf9nhKpw5'),
			key: 'makePassword',
			value: '',
			placeHolder: $t('h86F5NDthjk7g68Mdro8o'),
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
			rules: [{ required: true, message: $t('ucjUyCuxDgDclbv5KYyr'), trigger: ['blur', 'change'] }],
		},
	];
	return array;
}
